/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upf.grupof.projectphotos.messageobj;

import java.awt.Image;
import java.io.Serializable;
import javax.swing.ImageIcon;

/**
 *
 * @author fredi
 */
public class Thumbnail implements iThumbnail, Serializable{

    private ImageIcon img;
    
    public Thumbnail (String URL){
        ImageIcon tempImg=new ImageIcon(URL);
        img = new ImageIcon(tempImg.getImage().getScaledInstance(50, 50, Image.SCALE_DEFAULT));
    }
    
    public ImageIcon getIcono() {
        return img;
    }
    
}
